package com.p24.info;

import com.p24.constants.P24Constants;

public abstract class P24Info {
	public P24Info(String root, String subDir) {
		if(!root.equals(""))
			this.root = root;
		if(!subDir.equals(""))
			this.subDir = subDir;
	}
	
	public String getURL() {
		return P24Constants.BASE_INFO_URL + root + "/" + subDir + "?";
	}

	public void setRoot(String root) {
		this.root = root;
	}

	public String getRoot() {
		return root;
	}

	public void setSubDir(String subDir) {
		this.subDir = subDir;
	}

	public String getSubDir() {
		return subDir;
	}
	
	private String root = "p24";
	private String subDir = "accountorder";
}
